#pragma once 

#include <iostream>
#include <vector>

typedef void(*task_t)();

void task1()
{
    std::cout << "更新日志" << std::endl;
}

void task2()
{
    std::cout << "刷新状态" << std::endl;
}

void task3()
{
    std::cout << "后台保留" << std::endl;
}

void task4()
{
    std::cout << "退出界面" << std::endl;
}

void loadTask(std::vector<task_t>* tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}